package com.snut.tomorrowNews.service.back;


import com.snut.tomorrowNews.dao.back.LoginDao;
import com.snut.tomorrowNews.model.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LoginService {

     @Autowired
     LoginDao loginDao;


     public Admin login(Admin admin){
          /*admin.setPassword(DigestUtils.md5Hex(admin.getPassword()));*/
       return loginDao.login(admin);
     }
}
